package com.baizhi.entity;

import java.io.Serializable;

public class Audio implements Serializable {
    private Integer audioId;

    private String audioName;

    private Integer albumId;

    private String audioUrl;

    private String audioSize;

    private Integer audioOrder;

    private static final long serialVersionUID = 1L;

    public Integer getAudioId() {
        return audioId;
    }

    public void setAudioId(Integer audioId) {
        this.audioId = audioId;
    }

    public String getAudioName() {
        return audioName;
    }

    public void setAudioName(String audioName) {
        this.audioName = audioName == null ? null : audioName.trim();
    }

    public Integer getAlbumId() {
        return albumId;
    }

    public void setAlbumId(Integer albumId) {
        this.albumId = albumId;
    }

    public String getAudioUrl() {
        return audioUrl;
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl == null ? null : audioUrl.trim();
    }

    public String getAudioSize() {
        return audioSize;
    }

    public void setAudioSize(String audioSize) {
        this.audioSize = audioSize == null ? null : audioSize.trim();
    }

    public Integer getAudioOrder() {
        return audioOrder;
    }

    public void setAudioOrder(Integer audioOrder) {
        this.audioOrder = audioOrder;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Audio other = (Audio) that;
        return (this.getAudioId() == null ? other.getAudioId() == null : this.getAudioId().equals(other.getAudioId()))
            && (this.getAudioName() == null ? other.getAudioName() == null : this.getAudioName().equals(other.getAudioName()))
            && (this.getAlbumId() == null ? other.getAlbumId() == null : this.getAlbumId().equals(other.getAlbumId()))
            && (this.getAudioUrl() == null ? other.getAudioUrl() == null : this.getAudioUrl().equals(other.getAudioUrl()))
            && (this.getAudioSize() == null ? other.getAudioSize() == null : this.getAudioSize().equals(other.getAudioSize()))
            && (this.getAudioOrder() == null ? other.getAudioOrder() == null : this.getAudioOrder().equals(other.getAudioOrder()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAudioId() == null) ? 0 : getAudioId().hashCode());
        result = prime * result + ((getAudioName() == null) ? 0 : getAudioName().hashCode());
        result = prime * result + ((getAlbumId() == null) ? 0 : getAlbumId().hashCode());
        result = prime * result + ((getAudioUrl() == null) ? 0 : getAudioUrl().hashCode());
        result = prime * result + ((getAudioSize() == null) ? 0 : getAudioSize().hashCode());
        result = prime * result + ((getAudioOrder() == null) ? 0 : getAudioOrder().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", audioId=").append(audioId);
        sb.append(", audioName=").append(audioName);
        sb.append(", albumId=").append(albumId);
        sb.append(", audioUrl=").append(audioUrl);
        sb.append(", audioSize=").append(audioSize);
        sb.append(", audioOrder=").append(audioOrder);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}